package com.wxr.controller;


import com.wxr.service.AsyncService;
import com.wxr.service.ScheduledService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AsyncController {

    @Autowired
    AsyncService asyncService;

    @Autowired
    ScheduledService scheduledService;

    @RequestMapping("/hello")
    public String toString() {
        asyncService.hello();

        return "ok";
    }
}
